#ifndef __USART0_H__
#define __USART0_H__
#include "usart_config.h"

#if USE_USART_0
#include "gd32f4xx.h"
#include "systick.h"

#if  USE_USART0_PRINTF
#include <stdio.h>
#endif

void usart0_init();
void usart0_send_byte(uint8_t data);
void usart0_send_data(uint8_t* data, uint32_t len);
void usart0_send_string(uint8_t* data);
#if USE_USART0_RECIVE
extern void usart0_on_recv(uint8_t* data, uint32_t len);
#endif
#endif
#endif